# Docker image for springboot file run
# VERSION 1.0.0
# Author: turtle
# 基础镜像使用java
FROM java:8

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /learn

WORKDIR /learn

EXPOSE 3000

ADD ./target/learning.jar ./

ENTRYPOINT ["sh","-c", "java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar learning.jar"]
